package com.shallowUniverse.dmp.netty.listener;

import com.shallowUniverse.dmp.netty.server.NettyServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author Shuai Guo
 * @version 1.0
 * @description
 * @date 2021/8/5
 */
@Component
public class NettyServerListener implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        new NettyServer().start(8081);
    }
}
